3D-printed ingestible pill